package com.gonsin.gview.annotations.board;

import com.gonsin.gview.annotations.enums.ButtonAction;
import com.gonsin.gview.annotations.impl.EmptyTableDataPicker;
import com.gonsin.gview.annotations.data.GTableData;
import com.gonsin.gview.annotations.board.form.GForm;
import com.gonsin.gview.annotations.board.tab.GTab;
import com.gonsin.gview.annotations.board.table.GTable;

import java.lang.annotation.*;

/**
 * 生成GView
 */
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface GBoard {

//    /**
//     * 标题栏
//     */
//    GHeader header() default @GHeader(enable = false);

    /**
     * 表格
     */
    GTable table() default @GTable(enable = false, tableData = @GTableData(keyName = "", fromTableDataPicker = EmptyTableDataPicker.class));

    /**
     * 表单栏
     */
    GForm form() default @GForm(enable = false, okButton = @GButton(enable = false, action = ButtonAction.NONE));
    /**
     * 表单栏
     */
    GTab[] tab() default {};

}
